package com.test.test.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface ProductInfoMapper {

	@Update("UPDATE product_info SET product_stock=product_stock-#{stock,jdbcType=INTEGER} where product_id= #{productId,jdbcType=VARCHAR}")
	int updateProductsStock(@Param("stock") Integer stock, @Param("productId") String productId);
}
